package com.demo.util;

import javafx.scene.Scene;

import java.util.HashMap;

public class Tabs {
    public static final String STEP1_KEY = "step1";
    public static final String STEP2_KEY = "step2";
    private static final HashMap<String, Scene> SCENES = new HashMap<String, Scene>();
    private static volatile Tabs instance;

    private Tabs() {
    }

    public static void addScene(String key, Scene scene) {
        if (SCENES.containsKey(key))
            SCENES.replace(key, scene);
        else SCENES.put(key, scene);
    }

    public static Scene getScene(String key) {
        return SCENES.get(key);
    }
}
